Ext.define('App.view.review.List', {
    extend: "Ext.List",
    xtype: 'reviewList',
    id: "reviewList",
    
    config: {
        title: '各科复习',
		fullscreen: true,
		loadingText: Global.loadingText,
		autoDestroy: false,
        emptyText: Global.emptyText,
        plugins: [{
            xclass: 'Ext.plugin.ListPaging',
            loadMoreText: '加载更多'
        }],
        itemTpl: [
        	'<table>',
			 	'<tr>',
					'<td>',
						'<span class="legislator-list-item">',
                			'<tpl if="subType == 30"><span class="legislator-pic" style="background-image: url(resources/img/001.jpg);"></span></tpl>',
							'<tpl if="subType == 31"><span class="legislator-pic" style="background-image: url(resources/img/002.jpg);"></span></tpl>',
							'<tpl if="subType == 32"><span class="legislator-pic" style="background-image: url(resources/img/003.jpg);"></span></tpl>',
							'<tpl if="subType == 33"><span class="legislator-pic" style="background-image: url(resources/img/004.jpg);"></span></tpl>',
							'<tpl if="subType == 34"><span class="legislator-pic" style="background-image: url(resources/img/005.jpg);"></span></tpl>',
							'<tpl if="subType == 35"><span class="legislator-pic" style="background-image: url(resources/img/006.jpg);"></span></tpl>',
			 			'</span>',
					'</td>',
					'<td>',
						'<span class="legislator-list-item">',
                			'{title}',
             			'</span>',
					'</td>',
				'</tr>',
			'</table>'
		]
    }
});
